package com.hs.server.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hs.server.domain.VehAiauditinfo;
import com.hs.server.mapper.VehAiauditinfoMapper;
import com.hs.server.service.VehAiauditinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class VehAiauditinfoServiceImpl extends ServiceImpl<VehAiauditinfoMapper, VehAiauditinfo> implements VehAiauditinfoService {
    @Autowired
    private VehAiauditinfoMapper vehAiauditinfoMapper;
    @Override
    public void saveByJylshAndZpzl(VehAiauditinfo vehAiauditinfo) {
        vehAiauditinfoMapper.updateSfzzbz(vehAiauditinfo.getJylsh(),vehAiauditinfo.getZpzl());
        vehAiauditinfo.setCjsj(new Date());
        vehAiauditinfoMapper.insert(vehAiauditinfo);
    }
}
